package com.hmall.feignconfig;

import com.hmall.common.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice")
public interface AddressClient {


    /**
     * 根据ID查询地址
     * @param id
     * @return
     */
    @GetMapping("/address/{id}")
    public Address findAddressById(@PathVariable("id") Long id);
}
